﻿using Abp.AutoMapper;
using Paas.Core.Approvals.Entities;
using Paas.Core.Const.Enums.Approvals;
using Basefr.App.Dtos;
using Basefr.Core.Consts.Enums;
using System.Collections.Generic;

namespace Paas.App.Interface.Approvals.Dtos
{
    [AutoMap(typeof(Approve))]
    public class ApproveDto : DtoBase
    {
        /// <summary>
        /// 模板
        /// </summary>
        public int TemplateId { get; set; }
        public ApproveTemplateDto Template { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public EnumApproveType Type { get; set; }

        /// <summary>
        /// 要处理的对象ID
        /// </summary>
        public int ObjectId { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        public long ApplicantId { get; set; }
        public string ApplicantName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public EnumApproveState State { get; set; }

        /// <summary>
        /// 执行记录详细步骤
        /// </summary>
        public List<ApproveStepDto> Steps { get; set; }

    }
}

